import Vue from 'vue'
import Router from 'vue-router'
import activity from '@/page/activity'
import activityId from '@/components/activityId'
import article from '@/page/article'
import SurfaceDial from '@/components/SurfaceDial'
import live from '@/page/live'
import column from '@/page/column'
import columnId from '@/components/columnId'
import activityPay from '@/components/activityPay'
import livedetails from '@/components/livedetails'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: article
    }, {
      path: '/activity/:activityId',
      props: true,
      component: activityId
    }, {
      path: '/activity',
      component: activity,
    }, {
      path: '/article/:roomid',
      component: SurfaceDial,
      props: true
    }, {
      path: '/live',
      component: live
    },
    {
      path: '/column',
      component: column
    },
    {
      path: '/column/:columnId',
      component: columnId,
      props: true
    },
    {
      path:'/activityPay/:activityPayId',
      props:true,
      component:activityPay
    },
    {
      path:'/live/:liveId',
      props:true,
      component:livedetails
    }
  ]
})
